package com.allen.study.common.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 分页API响应
 *
 * @author AllenSun
 * @since 2025-04-23 20:46
 */
@Schema(description = "分页响应")
@Getter
@Setter
@ToString
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class PageResponse<T> {


    /**
     * 分页信息
     */
    @Schema(description = "分页信息")
    private Pagination pagination;


    /**
     * 响应数据
     */
    @Schema(description = "列表数据")
    private List<T> list;
}
